import Vue from "vue";
import App from "./App.vue";
//按需引入Antd组件库
import {
  Button,
  Form,
  FormModel,
  Input,
  Icon,
  Checkbox,
  message,
  Layout,
  Menu,
  Select,
  DatePicker,
  Popconfirm,
  Table,
  Skeleton,
  Avatar,
} from "ant-design-vue";
//引入Antd组件库CSS文件
import "ant-design-vue/dist/antd.css";
Vue.use(Button);
Vue.use(Form);
Vue.use(Select);
Vue.use(DatePicker);
Vue.use(FormModel);
Vue.use(Input);
Vue.use(Icon);
Vue.use(Table);
Vue.use(Checkbox);
Vue.use(Layout);
Vue.use(Menu);
Vue.use(Skeleton);
Vue.use(Popconfirm);
Vue.use(Avatar);
//message 是全局提示它的触发是方法调用的，所以直接绑定在Vue的原型上
//这样无论何时用Vue.message都可以弹出全局提示
Vue.prototype.$message = message;
Vue.config.productionTip = false;

// 引入mockjs
require("../mock/mock.js");

//引入router
import router from "./router";

//引入store
import store from "./store";
new Vue({
  router,
  store,
  render: (h) => h(App),
  mounted: function() {
    this.$message.info("你好");
  },
}).$mount("#app");